<template>
  <input type="file" @change="handleChange">
</template>

<script setup>
import { cutFile } from './hook/core'

const handleChange = async (e) => {
    const file = e.target.files[0]
    console.time('cutFile')
    const chunks = await cutFile({file})
    console.timeEnd('cutFile')
    console.log(chunks, `文件${Math.round(file.size / 1024 / 1024)}兆`)
}
</script>

<style>

</style>